package dto

// 系统用户登录时用户数据结构
type SysUsersApiSignReq struct {
	UserName string `form:"username" json:"username"`
	Email    string `form:"email" json:"email"`
	Password string `form:"password" json:"password" binding:"required"`
}

//用户表数组字段
type SysUserRoleIdVal struct {
	Value uint32 `json:"value"`
	Label string `json:"label"`
}

//系统用户列表请求数据结构
type SysUserGetListReq struct {
	Status   int    `form:"status"`                 //使用状态
	Name     string `form:"name"`                   //用户名称
	Email    string `form:"email"`                  //登录邮箱
	PageNo   int64  `form:"pageNo" binding:"min=1"` //分页页码
	PageSize int64  `form:"pageSize"`               //分页大小
}

//用户删除表单
type SysUserFormDestroy struct {
	UserIds []uint32 `form:"user_ids" json:"user_ids" binding:"dive,required"` // 用户ID
}

type SysUserResetPwdRequest struct {
	OldPassword     string `form:"old" json:"old" binding:"required"`           //旧密码
	NewPassword     string `form:"password" json:"password" binding:"required"` //新密码
	ConfirmPassword string `form:"confirm" json:"confirm" binding:"required"`   //确认密码
	PasswordLevel   uint32 `form:"password_level" json:"password_level"`        //密码安全等级
}
